public class WhileExercise{
	public static void main(String[] args) {
		int i = 1;
		System.out.println(i);
		while( i<=100 ){
			if( i % 3 == 0 ){
				System.out.println(i);
			}
			i++;
		}
		System.out.println("------------------------------------------------");
		i=40;
		while( i<=200 ){
			if( i % 2 == 0 ){
				System.out.println(i);
			}
			i++;
		}
	}
}